package services;

public class HomeService {
    private HomeService() {
        
    }
    private static HomeService  homeService= null;
    public static  synchronized HomeService getHomeService() {
        if(homeService==null) {
            homeService = new HomeService();
            return homeService;
        }else {
            return homeService;
        }
    }
    public String getHomeMessage() {
       return "Welcome to  tommy blog !";
    }
}
